package cn.itcast.shop.cart.vo;

import cn.itcast.shop.product.vo.Product;

public class CartItem {
	
	private Product product;
	
	private int count;
	
	private int subtotal;

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public double getSubtotal() {
		return product.getShop_price() * count;
	}

	
	
	

}
